Skip to content

Refactor: simplify the CLI command addition#6

Open
thoriqadillah wants to merge 6 commits intoanthdm:masterfrom
thoriqadillah:refactor-cli
Open

Refactor: simplify the CLI command addition#6
thoriqadillah wants to merge 6 commits intoanthdm:masterfrom
thoriqadillah:refactor-cli

Conversation

@thoriqadillah
Copy link

@thoriqadillah thoriqadillah commented Dec 16, 2023

Before this, when we want to make a new command for the cli, we need to extend the switch case, and then manually adding the usage or help command. This can be messy pretty quick. So, i use the cobra library to simplify the command addition for further development

Note: this PR mostly only modify/refactor the current cli approach. There is absolutely room for other improvement, but the intention of this PR solely only to refactor the cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant